<?php
class Amain {
	public static function main($sfuncode) {
		list($classid, $funcode) = explode('-', $sfuncode, 2);
		switch ($classid) {
			case 1:
				require 'operations.lib.php';
				Aoperations::main($funcode);
				break;
			case 2:
				require 'news.lib.php';
				Anews::main($funcode);
				break;
			case 3:
				require 'user.lib.php';
				Auser::main($funcode);
				break;
			case 4:
				require 'album.lib.php';
				Aalbum::main($funcode);
				break;
			case 5:
				require 'setting.lib.php';
				Asetting::main($funcode);
				break;
			case 6:
				require 'earning.lib.php';
				Aearning::main($funcode);
				break;
			case 7:
				require 'paycenter.lib.php';
				Apaycenter::main($funcode);
				break;
			case 8:
				require 'contribute.lib.php';
				Acontribute::main($funcode);
				break;
			case 9:
				require 'props.lib.php';
				Aprops::main($funcode);
				break;
			case 10:
				require 'daily.lib.php';
				Adaily::main($funcode);
				break;
			default:
				sview::$view->assign_error(404, lang::text(404));
		}
	}
}